package svlt;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import bean.Controlador;

import cliente.ClienteODV;

public class Parametros extends HttpServlet {
	private static final long serialVersionUID = 1L;
	ClienteODV odv = new ClienteODV();
       
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String cuil = request.getParameter("cuil");
		String razonSocial = request.getParameter("razonSocial");
		float recargo30 = Float.parseFloat(request.getParameter("recargo30"));
		float recargo60 = Float.parseFloat(request.getParameter("recargo60"));
		float descuentoCtdo = Float.parseFloat(request.getParameter("descuentoCtdo"));
		String condicionIVA = request.getParameter("condicionIVA");
		
		try {
			Controlador.getInstance().altaDeCliente(cuil, razonSocial, recargo30, recargo60, descuentoCtdo,condicionIVA);
		} catch (Exception e) {
			System.out.println(e.toString());
		}		
			
}

	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		doGet(request, response);
	}

}
